<div class="dj-formtable">
    <table class="dj-table">
        <tr>
            <th >试卷名称<span style="color: red;">*</span></th>
            <td  ng-class="{ 'focused error' : this.editForm.papername.$invalid &&  this.editForm.$submitted}">
                <input type="text" name="papername" ng-model="dataModel.papername"
                       class="form-control" ng-required="true"/>
                <span ng-show="this.editForm.papername.$invalid &&  this.editForm.$submitted"
                      class="error">必填.</span>
            </td>
        </tr>
        <tr>
            <th >试题来源题库<span style="color: red;">*</span></th>
            <td  ng-class="{ 'focused error' : this.editForm.username.$invalid &&  this.editForm.$submitted}">
                <tree-select data-url="libaryTreeConfig.url" data-value="libaryTreeConfig.value" data-ismulti="libaryTreeConfig.ismulti" data-params="libaryTreeConfig.params"></tree-select>
                <label ng-show="this.editForm.username.$invalid &&  this.editForm.$submitted"
                       class="error">必填.</label>
            </td>
        </tr>
        <tr>
            <th >试题难度<span style="color: red;">*</span></th>
            <td >
                <div link-condition ng-model="paperArgs.paperDifficultyList" all-Text=""   single-Mode="2"  source-list="difficultyList" text-field="dicvalue" value-field="dickey"></div>
            </td>
        </tr>

        <tr ng-if="isEntryTestPaper()">
            <th >考试时长(分钟)<span style="color: red;">*</span></th>
            <td ng-class="{ 'focused error' : this.editForm.limitedMinutes.$invalid &&  this.editForm.$submitted}">
                <input type="text" name="limitedMinutes" ng-model="dataModel.limitedMinutes"
                       class="form-control" ng-required="true" style="width: 150px;"/>
                <span ng-show="this.editForm.limitedMinutes.$invalid &&  this.editForm.$submitted"
                      class="error">必填.</span>
            </td>
        </tr>
        <tr ng-if="isEntryTestPaper()">
            <th >及格分<span style="color: red;">*</span></th>
            <td ng-class="{ 'focused error' : this.editForm.passingscore.$invalid &&  this.editForm.$submitted}">
                <input type="text" name="passingscore" ng-model="dataModel.passingscore"
                       class="form-control" ng-required="true" style="width: 150px;"/>
                <span ng-show="this.editForm.passingscore.$invalid &&  this.editForm.$submitted"
                      class="error">必填.</span>
            </td>
        </tr>
    </table>
</div>
<div class="dj-formtable">
    <div class="table-responsive list-table-panel">
        <div class="list-table-title">
            <div class="table-title">
                题型试题设置
            </div>
            <div class="table-tool">
            </div>
        </div>
        <div class="outoflow" style="max-height: 300px;">
            <table class="table table-bordered table-striped table-hover js-basic-example dataTable text-nowrap">
                <thead>
                <tr>
                    <th>试题类型</th>
                    <th>取题数</th>
                    <th>可取题数</th>
                    <th>分类总分数</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="it in typedataList">
                    <td>{{it.NAME}}</td>
                    <td  ng-class="{ 'has-error' : invalidFee($index,editForm,'QUESTION_NUM') &&  this.editForm.$submitted}">
                        <input type="number" autocomplete="off" class="form-control" name="QUESTION_NUM_{{$index}}"
                               ng-model="it.QUESTION_NUM" ng-required="true" ng-pattern="/^[0-9]+$/"/>
                    </td>
                    <td>{{it.TYPENUMBER}}</td>
                    <td>{{it.QUESTION_NUM*it.SCORE}}</td>
                </tr>
                <tr ng-if="typedataList.length<=0">
                    <td colspan="5" style="text-align:center">暂无数据</td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>
<div class="form_foot">
    <button type="button" class="btn btn-default" ng-click="pagechange();">取消</button>
    <button type="submit"
            class="btn btn-primary" ng-if="!isDetail"
            ng-click="nextTwo(this.editForm.$valid)" >下一步
    </button>
    <button type="submit"
            class="btn btn-primary" ng-if="isDetail"
            ng-click="toggle(2)" >下一步
    </button>
</div>
